using System;
using AgFractal.Fractals;

namespace AgFractal
{
    public class HistoryEntry
    {
        public double R1 { get; set; }
        public double I1 { get; set; }
        public double R2 { get; set; }
        public double I2 { get; set; }        
        public IFractal Fractal { get; private set; }        
        public HistoryEntry(IFractal fractal)
        {
            Fractal = fractal;
            R1 = fractal.R1;
            I1 = fractal.I1;
            R2 = fractal.R2;
            I2 = fractal.I2;
        }

        public HistoryEntry Clone()
        {
            return (HistoryEntry)MemberwiseClone();
        }
    }
}